package oo;

public class ComboBoxItem {

	private String value;
	private String resValue;
	
	private boolean translate = true;


	private String translatedvalue;
	
	public String getTranslatedvalue() {
		return translatedvalue;
	}


	public String getValue() {
		return value;
	}

	public void setValue(String basevalue) {

		this.value = basevalue;
	}
	
	public String getResValue() {
		return resValue;
	}

	public void setResValue(String resValue) {
		this.resValue = resValue;
		System.out.println("3"+resValue);
		if(!translate) {
			translatedvalue = resValue;
		}
		if(resValue!=null && translate) {
			System.out.println("vvv");
			translatedvalue = Translator.translate(resValue);
			
			System.out.println("tra"+translatedvalue );
		}
	}
	
	public String toString() {
		return translatedvalue;
	}
	
	public boolean isTranslate() {
		return translate;
	}

	public void setTranslate(boolean translate) {
		this.translate = translate;
	}	
	
	
}
